package se.energimyndigheten.lampguiden.util;

import android.annotation.SuppressLint;
import android.content.Context;
import android.view.accessibility.AccessibilityManager;
import android.webkit.WebView;

public class CompatPreICS extends Compat {
    @Override
    public boolean isAccessibilityEnabled(Context ctx) {
        AccessibilityManager accessibilityManager =
                (AccessibilityManager) ctx.getSystemService(Context.ACCESSIBILITY_SERVICE);
        return accessibilityManager.isEnabled();
    }

    @SuppressLint("SetJavaScriptEnabled")
    @Override
    public void enableJavaScript(WebView wv) {
        wv.getSettings().setJavaScriptEnabled(true);
    }
}